{% extends "simgenex/base_simgenex.html" %}
{%block center%}

<div class="edit_form" >
    <h2 class="title">Discrimination Settings</h2>
    <form action="add" method="post" class="edit">
    {% csrf_token %}
    <fieldset>
        <legend></legend>
        <div class="input_field" >
            <label>Distance</label>
            <span class="helptext">Select the distance measure method to compare the simulated matrix</span>
            <select name="distance" >
                <option value="correlation"
                        {% if input.distance == "distance_correl" %}
                            selected="selected"
                        {% endif %}
                        > correlation </option>
                <option value="euclidean"
                        {% if input.distance == "distance_euclidean"%}
                            selected="selected"
                        {% endif %}
                            >euclidean</option>
                {% comment %} 
                <option value="sum_squares"
                        {% if input.distance == "sum_squares"%}
                            selected="selected"
                        {% endif %}
                            >sum_squares</option>
                {% endcomment %}
            </select>
        </div>
        <div class="input_field" >
            <label>White list</label>
            <span class="helptext">Enter the factors or genes, in a transsys program, whose initial conditions must not be changed by the optimiser when performing model selection. You can enter more than once by adding commas(,) after each factor or gene.</span>
            <label for="factors">Factors</label>
            <input type="text" name="factors" id="factors" value="{% for factor in input.factor_list %}{{factor}}, {% endfor %}"/>
            <input type="hidden" id="factor_src" value="{% for tp in request.session.sgx_program.target_tp %}{% for factor in tp.factor_list %}{{factor.name}},{% endfor %}{% endfor %}"/>
            <label for="genes">Genes</label>
            <input type="text" name="genes" id="genes" value="{% for gene in input.gene_list %}{{gene}}, {% endfor %}"/>
            <input type="hidden" id="gene_src" value="{% for tp in request.session.sgx_program.target_tp %}{% for gene in tp.gene_list %}{{gene.name}},{% endfor %}{% endfor %}"/>
        </div>

    </fieldset>
        <div>
            <button type="submit" name="submit" > Submit</button>
        </div>
    </form>
</div>
{% endblock %}